public class YearWorker extends Empoyee{
    @Override
    public double earnings() {

        return 240000;
    }
}
